package cn.zcq100.Factory;

public class Store {
	public static void main(String[] arg){
		Pizza pizza1=Factory.make("nyPizza");
		pizza1.getName();
		pizza1.prepare();
		pizza1.make();
		pizza1.cut();
		System.out.println("---------");
		
		Pizza pizza2=Factory.make("italyPizza");
		pizza2.getName();
		pizza2.prepare();
		pizza2.make();
		pizza2.cut();
		System.out.println("---------");
	}
}
